<php>if($list){</php>
<php>$coment_count=count($list)</php>
	<volist id="vo" name="list">
	  <php>if($coment_count>=3 && $key==2){</php>
        <div class="rcbox line_CCC" onclick=$("div[rel='comment_hidden_{$type}_{$fid}']").show();$(this).hide()> <a href="javascript:void(0)"  class="f12 lh16">{:L('comment_show',array('[num]'=>$coment_count))}</a></div>
      <php>}</php>
	    <php>$isdisplay = ( $coment_count>=3 && $i>=2 && $i<=($coment_count-1) )?'style="display:none" rel="comment_hidden_'.$type.'_'.$fid.'"':''; </php>
        <div class="rcbox line_CCC" id="comment_content_{$type}_{$vo.id}" {$isdisplay}>
        <div onmouseover="this.className='on'" onmouseout="this.className='#'">
          <div class="headpic50"><a href="{:U('space/View/index',array('uid'=>$vo['uid']))}"><img src="{$vo.uid|getUserFace=s}" width="50" /></a></div>
          <div class="rcc">
          	<php>if( $vo['uid']==$mid || $admin==$mid ){</php>
          		<a href="javascript:void(0)" onclick="delreply({$vo.id},'{$type}')" class="delR">{:L('common_delete')}</a>
          	<php>}</php>
          	<a href="{:U('space/View/index',array('uid'=>$vo['uid']))}" class="f12 mr10">{$vo.uid|getUserName}</a><em>{$vo.cTime|friendLyDate}</em><br />
          {$vo.comment}<a href="javascript:void(0)" onclick="docomment('{$type}_{$fid}',{$vo.uid},'{$vo.uid|getUserName}');" class="ml10">{:L('common_restore')}</a> </div>
          <div class="C"></div>
        </div>           
        </div>
	</volist>
<php>}</php>

<div class="rcbox" rel="uncomment_replay" type="{$type}_{$fid}">
  <input type="text" class="rc_text" value="{:L('comment_add_mini')}" onfocus="docomment('{$type}_{$fid}',false,'')" />
</div>

<div class="rcbox" style="display:none" rel="comment_replay" type="{$type}_{$fid}"> 
  <div class="headpic50"><img src="{$mid|getUserFace}"/></div>
  <div class="rcc"><textarea  class="rc_text" style="width:335px;" id="comment_textarea_{$type}_{$fid}" name="comment_textarea_{$vo.id}"></textarea>
  				   <input type="hidden" id="comment_replayto_{$type}_{$fid}" name="comment_replayto_{$type}_{$fid}" value="" >
                   <input name="" type="button" class="btn_r" value="{:L('comment_restore')}" onclick="doaddcomment('{$type}_{$fid}')" />
                   <input name="" onclick="undocomment('{$type}_{$fid}','false',0)" class="btn_r" type="button" value="{:L('common_cancel')}" />
  </div>
</div>           
